package com.zsrt.java.day20161226.xww.demo3.demo7;

import java.util.Scanner;

public class Dial {

	public static void demo7(int num){
		switch (num) {
		case 1:System.out.println("拨爸爸的号");break;
		case 2:System.out.println("拨妈妈的号");break;
		case 3:System.out.println("拨爷爷的号");break;
		case 4:System.out.println("拨奶奶的号");break;
		default:System.out.println("其他业务");break;
		}
	}
	public static void main(String[] args) {
		Scanner sc=new Scanner(System.in);
		System.out.println("请输入要的拨打的业务号码：");
		int num=sc.nextInt();
		demo7(num);
		sc.close();
	}
}
